Pinning content in nonvolatile memory

ABSTRACT

Systems and methods relating to pinning selected data to sectors in non-volatile memory. A graphical user interface allows a user to specify certain data (e.g., directories or files) to be pinned. A list of pinned sectors can be stored so that a driver or controller that operates on a sector basis and not a file or directory basis can identify data to be pinned.

FIELD

The present invention relates generally to data storage, and morespecifically to data storage in nonvolatile memory.

BACKGROUND

Many computer systems include system memory and storage media forinformation storage. The system memory typically includes volatilememory (meaning that the information is lost when the memory has nopower). Examples include dynamic random access memory (DRAM) and staticrandom access memory (SRAM). Storage media typically includes magneticor optical media such as hard disk drives, and typically has much sloweraccess times than system memory.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention are illustrated by way of example and notlimitation in the figures of the accompanying drawings, in which likereference numerals indicate similar elements and in which:

FIG. 1 shows a system in accordance with various embodiments of theinvention;

FIGS. 2 and 3 are block diagrams of user applications interacting withstorage systems in accordance with embodiments of the invention;

FIGS. 4 and 5 are flow diagrams in accordance with various embodimentsof the invention;

FIGS. 6 and 7 are diagrams of user interface components in accordancewith various embodiments of the invention; and

FIG. 8 shows an electronic device in accordance with some embodiments ofthe present invention.

DESCRIPTION OF EMBODIMENTS

FIG. 1 shows a system 100 in accordance with various embodiments of theinvention. System 100 may be any type of system with memory. Forexample, system 100 may be a mobile phone with volatile and nonvolatilememory. Also for example, system 100 may be a global positioning system(GPS) receiver or a portable media player with volatile and nonvolatilememory. System 100 may be any type of device without departing from thescope of the present invention.

In some embodiments, system 100 has a wireless interface 120. Wirelessinterface 120 is coupled to antenna 114 to allow system 100 tocommunicate with other over-the-air communication devices. As such,system 100 may operate as a cellular device or a device that operates inwireless networks such as, for example, Wireless Fidelity (Wi-Fi) thatprovides the underlying technology of Wireless Local Area Network (WLAN)based on the IEEE 802.11 specifications, WiMax and Mobile WiMax based onIEEE 802.16-2005, Wideband Code Division Multiple Access (WCDMA), andGlobal System for Mobile Communications (GSM) networks, although thepresent invention is not limited to operate in only these networks. Itshould be understood that the scope of the present invention is notlimited by the types of, the number of, or the frequency of thecommunication protocols that may be used by system 100. Embodiments arenot, however, limited to wireless communication embodiments. Othernon-wireless applications can use the various embodiments of theinvention.

System 100 includes processor 110 coupled to interface 105. Interface105 provides communication between processor 110 and the various otherdevices coupled to interface 105. For example, processor 110 maycommunicate with memory devices in system memory 115, as well as media170. Interface 105 can include serial and/or parallel buses to shareinformation along with control signal lines to be used to providehandshaking between processor 110 and the various other devices coupledto interface 105.

System memory 115 may include one or more different types of memory andmay include both volatile (e.g., random access memory (RAM) 152) andnonvolatile memory (e.g., read only memory (ROM) 150, phase changememory (PCM) 152, NOR FLASH memory 154, NAND single level cell (SLC)memory 156, and NAND multi-level cell (MLC) memory 158). These memorytypes are listed as examples, and this list is not meant to beexclusive. For example, some embodiments may include Ovonic UnifiedMemory (OUM), Chalcogenide Random Access Memory (C-RAM), Magnetic RandomAccess Memory (MRAM), Ferroelectric Random Access Memory (FRAM), StaticRandom Access Memory (SRAM), Dynamic Random Access Memory (DRAM), or anyother type of storage device.

System storage 115 provides storage for storage contents 120. Storagecontents 120 may include operating system 145, application programs 147,drivers 141, other programs 149, program data 151, and pinning contentdata 142. One skilled in the art will appreciate that storage contents120 may include anything that can be represented in a digital format,including any type of program, instructions, or data.

Different parts of storage contents 120 can be stored in different typesof memories within system memory 115 as well as media 170. For example,drivers 141 may be stored in RAM 152, while program data 151 may bestored in NOR FLASH 154. In some embodiments, each component withinstorage contents 120 may be spread across multiple types of memorywithin system memory 115. For example, part of application programs 147may be stored in RAM 152, while another part of application programs 147may be stored in ROM 150, while still another part of applicationprograms 147 may be stored in PCM 152. In general, any and all ofstorage contents 120 may be spread among the different types of memorywithin system storage 115.

Media 170 may be a magnetic disk drive, an optical storage drive, or thelike. Any of the storage contents 120 may be stored on media 170. Forexample, application programs 147 and/or program data 151 may be storedon media 170. System 100 may include a non-volatile disk drive cachethat stores data read from, or written to, media 170. The cache may beformed from any of the non-volatile memory within system memory 115. Forexample, a disk drive cache may be implemented using PCM 152 or any ofFLASH memories 154, 156, or 158.

In some embodiments, non-volatile memory is also used to implement avirtual hard disk drive, referred to herein as a non-volatile memory(NVM) drive. For example, PCM 152 may be formatted and accessed in amanner that mimics the operation of a disk drive. The cost of storage inan NVM drive is generally higher than on an actual disk drive, but theperformance tends to be much greater.

Various embodiments of the present invention allow a user of system 100to specify which portions of storage contents 120 are to be stored, or“pinned,” in an NVM drive. For example, a user may pin an applicationprogram in an NVM drive to increase performance of that particularapplication program. Also for example, a user may pin program data in anNVM drive. In addition to pinning based on user input, variousembodiments of the present invention combine user controlled pinning andhard disk drive caching in non-volatile memory.

Drivers 141 are software components that provide low level control ofdevices within system 100. For example, drivers 141 provide low levelread/write services when applications write to media 170. As describedfurther below, drivers 141 may redirect writes intended for media 170 toeither non-volatile cache or an NVM drive based on user inputs. Drivers141 keep track of which data is pinned or cached using pinning contentdata 142. In some embodiments, pinning content data 142 may list disksectors that are cached or pinned. When drivers 141 receive a request towrite a particular sector to media 170, the pinning content data 142 isconsulted to determine where to write the data (e.g., to media 170, to anon-volatile cache, or to an NVM drive).

In various embodiments, users have the ability to specify which filesand/or directories are pinned in an NVM drive, giving manual controlover the NVM contents to the user. This allows the user to identifyspecific files and/or applications that will be faster to load andexecute, due to their presence in the faster NVM drive. Additionally,the user may wish to enable traditional caching (using a popular cachingalgorithm such as Least Recently Used, etc) for the sectors innon-volatile memory. For example, if the user has “pinned” 10 GB of datainto NVM and the NVM drive is 16 GB, the remaining 6 GB of NVM may beused to cache other disk accesses in the traditional manner. Thisimproves overall system performance while still guaranteeing specificapplications will load quickly from NVM.

Processor 110 includes at least one core 160, 180, and each core mayinclude memory. For example, first core 160 may include volatile ornonvolatile memory such as PCM, FLASH, or RAM. Each core may include anycombination of different types of memory without departing from thescope of the present invention. Processor 110 may execute instructionsfrom any suitable memory within system 100. For example, any of thememory devices within system memory 115 may be considered acomputer-readable medium that has instructions stored that when accessedcause processor 110 to perform embodiments of the invention.

In some embodiments, processor 110 also includes an integral memorymanagement unit (MMU) 130. In some embodiments, MMU 130 is a separatedevice. Memory management unit 130 is a hardware device or circuit thatis responsible for handling accesses to memory requested by processor110. When present, memory management unit 130 supports virtual memoryand paging by translating virtual addresses into physical addresses.

FIG. 2 shows a block diagram of a user application 202 interacting witha storage system 200. Storage system 200 includes hard drive 217,non-volatile memory (NVM) drive 215, NVM driver 221, hard drive driver223, pinning driver 206, pinning service 212, and pinning graphical userinterface (GUI) 210. Hard drive 217 is a storage device such as amagnetic disk or optical disk. Hard drive 217 corresponds to media 170(FIG. 1). NVM drive 215 is non-volatile memory that emulates a diskdrive. In some embodiments, NVM drive 215 is also used as a non-volatilecache for hard drive 217. NVM drive 215 may use any type of non-volatilememory present in the system. For example, NVM drive 215 may employ PCM152 (FIG. 1) or any of the FLASH memories of FIG. 1.

In operation, user application 202 reads and writes data from and tovarious sectors 204. In an example, the sectors 204 are physical storagelocations where data relating to user application 202 is stored. Inanother example, the sectors 204 are virtual sector identifiers that aremapped to actual physical locations by the drivers. When userapplication 202 is performing a read or write, user application 202identifies which sectors 204 are to be accessed, and provides thisinformation to pinning driver 206. Pinning driver 206 determines whetherto forward the access request to hard drive driver 223 for access tohard drive 217 or to NVM driver 221 for access to NVM drive 215.

In some embodiments, pinning driver 206 is not aware of files,directories, or other high-order constructs, but deals with sectoraccess, for example, sector reads & writes. Pinning driver 206 supportsspecial messages, e.g., input/output controls (IOCTLs), which instructthe driver to either pin sectors to the NVM drive 215 or to un-pinsectors, thereby allowing the system to determine where to store thesectors. Pinning driver 206 can communicate with a graphical userinterface 210 and a pinning service that allows user input to controlpinning.

The pinning driver 206 stores a list 208 of pinned sectors. The pinnedsector list 208 is controlled by either GUI 210 or pinning service 212.The pinned sector list 208 represents the sectors that are chosen to bepinned to NVM drive 215. The pinned sector list 208 can be stored in acache memory associated with pinning driver 206.

In operation, the pinning driver 206 acts as a front-end interfacebetween the slower hard drive 217 and the faster NVM drive 215. Memorysectors being accessed by application 202 are checked for presence inthe NVM drive 215; e.g., in pinned sector list 208. If the sectors 204being accessed are in the pinned sector list 208, then the data of thesectors are accessed in the NVM drive 215. If the sectors 204 beingaccessed are not in the pinned sector list 208, then the data of thesectors are accessed in the hard drive 217. The pinning driver 206 alsosupports special messages (such as IOCTLS) which instruct the driver topin or un-pin a list of sectors. This allows the pinning GUI and pinningservice to manage which sectors are to be stored in NVM drive 215.Examples of the GUI and pinning service are described with reference toFIGS. 6 and 7.

Because pinning driver 206 is only aware of sectors, but users areinterested in pinning files and directories, various embodiments of theinvention include a pinning service software component 212 to provide amapping between files and sectors. That is, given an input list offiles/directories (f1, d1, d2, f3, . . . ), the pinning service 212 willoutput a list of sectors (s1, s21, s43, . . . ) that contain the listedfiles. Because files and directories which are not “read-only” can beupdated, the list of used sectors can vary from one moment to the next.For example, if you edit the a document File1.doc and add a few newpages, it may use an additional sector on the disk. Since File.doc ismarked by the user as “Pinned”, we must take extra steps to pin the newsector(s). In some embodiments, the pinning service 212 runsperiodically to check the list of currently pinned sectors against thelist of sectors which should be pinned. The pinning service 212 removesany unnecessary sectors from the NVM drive, and pins any new sectors aswell.

FIG. 3 shows a block diagram of a storage system 300 in which elementsthat are similar to the examples described with reference to FIG. 2 areidentified with like reference numbers. As shown in FIG. 3, userapplication 202 communicates the data access required on a sector basisto a serial ATA (“SATA”) controller 331 that in turn communicates withthe NVM drive 215 and the hard drive 217. The SATA controller 331controls the placement of sectors for select applications by instructionfrom the pinning driver 206, which maintains the pinned sector list 208.In an alternate example, the SATA controller 331 communicates with orstores the pinned sector list 208 so that the SATA controller candetermine the pinned sectors and communicate with the correct bulkstorage device, e.g., either the NVM drive 215 or the hard drive 217.The pinning driver 206 in this example operates to update the pinnedsector list 208.

FIG. 4 is a flow diagram in accordance with an embodiment of the presentinvention. In some embodiments, method 400, or portions thereof, isperformed within a pinning driver software component such as pinningdriver 206 (FIGS. 2, 3). In other embodiments, method 400 is performedby an integrated circuit or an electronic system. Method 400 is notlimited by the particular type of apparatus performing the method. Thevarious actions in method 400 may be performed in the order presented,or may be performed in a different order. Further, in some embodiments,some actions listed in FIG. 4 are omitted from method 400.

Method 400 is shown beginning with block 402 in which a request to reador write is received. This request can be at a file or directory levelthat is then interpreted to represent the sectors in which the file ordirectory is stored. For example, a file named “file1” is to be read foruse by an application. The sector, e.g., s38, is determined to be thesector storing file1. Accordingly, sector s38 is the sector from whichthe file1 data will be read. At 404, it is determined whether the sectoris pinned. If the sector is pinned, method 400 proceeds to 405. If thesector is not pinned, method 400 proceeds to 408. In some embodiments, asector may be pinned to a NVM drive based on a user's input. Further, insome embodiments, sectors may be pinned by an algorithm in the deviceafter it is determined that free, non-user pinned sectors remain in theNVM drive.

At 405, the request from 402 is fulfilled from the pinned sector in theNVM drive. Thereafter the flow ends at 406 until a new request isreceived (402). At 408, it is determined whether the sector is a cachedsector. In an example, a cached sector is a sector storing a file,directory, or other data that the device has determined should be storedin a faster memory location, e.g., a fast bulk memory location such asan NVM drive. If the sector is cached, then the flow moves to 410. Ifthe sector is not cached, then the flow moves to 412.

At 410, the request from 408 is fulfilled from the cached sector in thenon-volatile memory. The cached sector may be stored in the NVM drive,or in an area of non-volatile memory not used for the NVM drive. Theactions of method 400 described thus far relate to accessing data thatis stored in nonvolatile memory; either in an NVM drive, or in anon-volatile cache. In other words, the actions above line 450 result ina data access if there is a cache hit or a “pin hit.” If there is nocache hit or pin hit, then method 400 continues below line 450.

At 412, the method 400 addresses sectors that are not pinned and are notcached. At 412, the remaining space for caching sectors in thenon-volatile memory. In some embodiments, this corresponds todetermining the remaining space in an NVM drive. In other embodiments,this corresponds to determining the remaining space in a non-volatilememory cache that is not part of an NVM drive. At 414, it is determinedwhether the remaining space is adequate to cache further sectors. Ifnot, then at 416 a cache eviction algorithm is run. This cache evictionalgorithm removes sectors from the non-volatile memory cache to makeroom for new data to be cached. One example of an evictable sector is asector that has been orphaned by closing its associated application.This sector can be moved to a slower bulk storage such as a hard driveor an NVM drive. Another example of an evictable sector is a sector thatis not often accessed. This sector can be moved to a slower bulk storagesuch as a hard drive or an NVM drive. It will be recognized that apinned sector cannot be moved from the NVM drive as a result of theactions at 416. If space has been cleared by 416 or there is space tocache a sector at 414, then the sector is read from the slower bulkstorage, e.g., a hard drive, and cached in the non-volatile memory at418. At 420, the request to access the sector is then fulfilled from thenon-volatile memory. Thereafter the flow ends at 422 until a new requestis received (402).

FIG. 5 is a flow diagram in accordance with an embodiment of the presentinvention. In some embodiments, method 500, or portions thereof, isperformed within a pinning service software component such as pinningservice 212 (FIGS. 2, 3). In other embodiments, method 500 is performedby an integrated circuit or an electronic system. Method 500 is notlimited by the particular type of apparatus performing the method. Thevarious actions in method 500 may be performed in the order presented,or may be performed in a different order. Further, in some embodiments,some actions listed in FIG. 5 are omitted from method 500.

Method 500 is shown beginning with block 502 in which a request tochange the status of sector is received. The request can be to pin asector to the faster NVM drive. The request can also be to unpin asector from the faster NVM drive. At 504, it is determined whether thesector is currently pinned; e.g., whether the sector is listed in thepinned sector list 208 (FIGS. 2, 3). If the sector is pinned, then at506 is it determined whether the request was to pin or unpin. If therequest was to pin and the sector is already pinned, the method 500 endsat 508. If the request is to unpin a pinned sector, then at 510 thesector is removed from the pinned sector list and the sector is moved toa slower storage location such as a hard drive. Thereafter, the method500 ends.

If at 504, it is determined that the sector subject to the request isnot pinned, then the flow moves to 512. At 512, it is determined whetherthe sector is cached. If the sector is cached, then at 514 is itdetermined whether the request was to pin or unpin. If the request wasto unpin and the sector is cached, the method 500 ends at 516. If therequest is to pin a non-pinned and cached sector, then at 518 the sectoris moved from the cached list to the pinned list. As the sector isalready in the non-volatile memory, the physical contents of the sectorneed not move. The sector number need only be added to the list ofpinned sectors, e.g., pinned sector list 208 as shown in FIGS. 2 and 3.Thereafter, method 500 ends at 516 until a new request is received at502.

If at 512 it is determined that the sector is not cached then the flowmoves to 520. At 520, the sector is copied from the hard drive to theNVM drive. At 522, the sector is added to the pinned sector list that isaccessible by the driver (e.g., pinning driver 206) or the controller(e.g., controller 331). At 524, the flow of method 500 ends.

FIG. 6 is a diagram of a user interface in accordance with someembodiments of the present invention. The graphical user interface (GUI)600 provides a means by which a user can indicate to a system thatcertain applications should have their data stored in an NVM drive orthat certain files should have their data stored in an NVM drive. GUI600 includes a title, here “Pinning Control Center”, typical interfacecontrols such as close, minimize, maximize, etc, and drop down menussuch as file and options. The GUI 600 further shows a frame 602 thatlists the contents of the C drive for the device at issue. Next to eachapplication listed in the C drive are check boxes. These boxes areinteractive and the user can check or uncheck any individual boxutilizing a pointing device, e.g., mouse, touch pad or other user I/Odevice. In this example, the directories entitled “Hiring,” “PCM,” and“Shared” are selected. As a result, the data associated with thesedirectories is stored in sectors that are pinned to an NVM drive. Otherdirectories and files can have their sectors pinned to the NVM drive bychecking the box next to their name in this listing of directories andfiles. As a result, the user can select the directories and files thatare stored in faster memory.

In order to make informed choices about pinning an application(s) and/ora file(s), the user should be provided with statistics regarding thepinned sectors. At 604, statistics regarding pinned sectors is shown.The number of sectors currently being pinned out of the total to bepinned in this operation is shown. The number of fully pinned sectors isshown. The number of sectors flushed from the NVM drive out of thetotals to be flushed is shown. These show the user the status of anyupdates to pinned and unpinned sectors.

At 606, the NVM drive properties are shown. In the example of FIG. 6,the NVM drive is implemented using PCM and is referred to as a PCMdrive. The total size of the PCM drive is shown, here by way of example,as 16 GB. The used space, here by way of example, 5.1 GB, and the freespace, here by way of example, 11.9 GB, are both shown. The number ofdirty sectors that would need to be moved to the hard drive if unpinnedis also shown, here by way of example, 1,200 dirty sectors. Thenumerical examples are provided to illustrate one possible state of asystem with an NVM drive. It will be recognized that the presentinvention need not be limited to these specific examples unless claimed.At 606, a graphic illustration of the total size, used space, andavailable space is shown to efficiently convey this data to a user.

At 608, further statistics regarding the files that are stored in pinnedsectors is shown. The file types are listed with respective percentagesof the whole of the pinned files. In the illustrated example, moviefiles are 39% of the total pinned files; image files are 21%; documentsare 14%; system files are 13%; and other files are 12%. A graphicalimage is provided to show these percentages. A further indication of thepinning hits and misses is shown. This shows the percentage of sectorsaccessed that are pinned (hits). The misses are the percentage ofsectors accessed that are not pinned. A brief listing of the most usedfiles is shown. These files indicate good candidates for sectors to pin.

In some embodiments, a GUI may be incorporated into a graphical shell.For example, pinning controls may be incorporated into a context menu ina Microsoft Windows shell to improve the user's experience. One exampleof such a GUI is described below with reference to FIG. 7.

FIG. 7 is a diagram of a user interface 700 in accordance with someembodiments. The graphical user interface (GUI) 700 is an example of acontext menu or icon overlay menu that allows a user to pin data to, orunpin data from, an NVM drive. The GUI 700 also allows a user to controlNVM cache.

In some embodiments, a right click on an icon can bring up this GUI 700.GUI 700 includes various user initiated functions such as open, explore,search, winzip, winmerge, send to, cut, copy, delete, rename,properties, etc. This is not an exhaustive list and the list can bemodified in certain applications. The properties command can provide alink to the GUI 600 in an example.

The two commands of interest for the pinning of files are the Pin to PCM704 and the PCM drive 706. The Pin to PCM 704 pins the current file tothe NVM drive, e.g., a PCM drive. The PCM drive 706 displays anothermenu 708 when selected. Menu 708 includes a plurality of user selectablecommands. These commands can include Un-Pin from PCM, PCM Statistics,Flush PCM Cache, Eject PCM cache, Settings, Control Center, and About.Un-pin from PCM will remove the sectors associated with the current filefrom the NVM drive. PCM statistics will pull up statistics similar tothose described above with regard to FIG. 6. Flush PCM cache will removethe sectors that are in the NVM drive but are unpinned. In an example,these cached sectors are moved to the hard drive if they are dirty.Eject PCM cache moves all sectors that are unpinned from the persistentmemory drive to the hard drive. Settings pulls up a settings menu.Control Center takes the user to the GUI 600.

FIG. 8 shows an electronic device 800 in accordance with someembodiments. The device 800 is shown as a diagrammatic representation ofmachine in the example form of a computer system within which a set ofinstructions may be executed causing the machine to perform any one ormore of the methods, processes, operations, applications, ormethodologies discussed herein. In an example embodiment, the device 800operates as a standalone device or may be connected (e.g., networked) toother machines. In a networked deployment, the machine may operate inthe capacity of a server or a client machine in server-client networkenvironment, or as a peer machine in a peer-to-peer (or distributed)network environment. The machine may be a server computer, a clientcomputer, a personal computer (PC), a tablet PC, a set-top box (STB), aPersonal Digital Assistant (PDA), a cellular telephone, a web appliance,a network router, switch or bridge, or any machine capable of executinga set of instructions (sequential or otherwise) that specify actions tobe taken by that machine. Further, while only a single machine isillustrated, the term “machine” shall also be taken to include anycollection of machines that individually or jointly execute a set (ormultiple sets) of instructions to perform any one or more of themethodologies discussed herein. The device 800 includes a processor 802(e.g., a central processing unit (CPU) a graphics processing unit (GPU)or both), a main memory 804 and a static memory 806, which communicatewith each other via a bus 808. The computer system 800 further includesa video display unit 810 (e.g., a liquid crystal display (LCD) or acathode ray tube (CRT)). The video display unit 810 displays graphicaluser interfaces 600, 700. The computer system 800 also includes analphanumeric input device 812 (e.g., a keyboard), a cursor controldevice 814 (e.g., a touchpad), a drive unit 816, a signal generationdevice 818 (e.g., a speaker) and a network interface device 820. Thedrive unit 816 represents both a hard drive or an NVM drive that canstore data and applications.

The drive unit 816 includes a machine-readable medium 822 on which isstored one or more sets of instructions (e.g., software instructions824) embodying any one or more of the methodologies or functionsdescribed herein. The software instructions 824 may also reside,completely or at least partially, within the main memory 804 and/orwithin the processor 802 during execution thereof by the computer system800, the main memory 804 and the processor 802 also constitutingcomputer-readable media. The software instructions 824 may further betransmitted or received over a network 826 via the network interfacedevice 820.

While the machine-readable medium 822 is shown in an example embodimentto be a single medium, the term “machine-readable medium” should betaken to include a single medium or multiple media (e.g., a centralizedor distributed database, and/or associated caches and servers) thatstore the one or more sets of instructions. The term “machine-readablemedium” shall also be taken to include any medium that is capable ofstoring, encoding or carrying a set of instructions for execution by themachine and that cause the machine to perform any one or more of themethodologies shown in the various embodiments of the present invention.The term “machine-readable medium” shall accordingly be taken toinclude, but not be limited to, solid-state memories, optical andmagnetic media, and carrier wave signals.

An algorithm is described herein, and generally, considered to be aself-consistent sequence of acts or operations leading to a desiredresult. These include physical manipulations of physical quantities.Usually, though not necessarily, these quantities take the form ofelectrical or magnetic signals capable of being stored, transferred,combined, compared, and otherwise manipulated. It has proven convenientat times, principally for reasons of common usage, to refer to thesesignals as bits, values, elements, symbols, characters, terms, numbersor the like. All of these and similar terms are to be associated withthe appropriate physical quantities and are merely convenient labelsapplied to these quantities.

Unless specifically stated otherwise, as apparent from the followingdiscussions, it is appreciated that throughout the specificationdiscussions utilizing terms such as “monitoring,” “storing,”“detecting,” “using,” “identifying,” “marking,” “receiving,” “loading,”“reconfiguring,” “formatting,” “determining,” or the like, refer to theaction and/or processes of a computer or computing system, or similarelectronic computing device, that manipulate and/or transform datarepresented as physical, such as electronic, quantities within thecomputing system's registers and/or memories into other data similarlyrepresented as physical quantities within the computing system'smemories, registers or other such information storage, transmission ordisplay devices.

Although the present invention has been described in conjunction withcertain embodiments, it is to be understood that modifications andvariations may be resorted to without departing from the scope of theinvention as those skilled in the art readily understand. Suchmodifications and variations are considered to be within the scope ofthe invention and the appended claims.

What is claimed is:
 1. A method comprising: receiving at a pinningservice a first list of files that are to be stored “pinned” in anon-volatile memory (NVM) drive that emulates a disk drive; mapping thelist of files to a first list of disk sectors that are to be pinned inthe NVM drive; pinning the sectors corresponding to the first list ofdisk sectors in the NVM drive; displaying at a graphical user interface(GUI) hit statistics and miss statistics corresponding to the pinnedsectors, wherein hit statistics correspond to pinned sectors and missstatistics correspond to sectors not pinned; receiving from the GUI asecond list of files selected by a user to be pinned or unpinned in theNVM drive, wherein the second list of files is selected by the userafter displaying the hit statistics and miss statistics: mapping thesecond list of files to a second list of disk sectors that are to bepinned or unpinned in the NVM drive; and pinning or unpinning thesectors corresponding to the second list of disk sectors in the NVMdrive.
 2. The method of claim 1 wherein the NVM drive utilizes phasechange memory (PCM).
 3. The method of claim 1 further comprisingreceiving a request to remove a file “unpin” from the NVM drive.
 4. Themethod of claim 1 further comprising periodically updating the list ofdisk sectors.
 5. The method of claim 1 further comprising caching datain the NVM drive.
 6. The method of claim 1 wherein the NVM drivecomprises FLASH memory.
 7. A non-transitory machine readable mediumhaving instructions stored thereon that when accessed cause a machinewith a non-volatile memory (NVM) drive that emulates a disk drive toperform: receiving a media access request that identifies at least onesector of a data file; determining if sectors corresponding to the datafile are pinned to the NVM drive; if pinned, fulfilling the request fromthe NVM drive; determining if the at least one sector is cached to theNVM drive; if cached, fulfilling the request from the NVM drive;displaying at a graphical user interface (GUI) hit statistics and missstatistics corresponding to pinned sectors in the NVM drive, wherein hitstatistics correspond to pinned sectors and miss statistics correspondto sectors not pinned; receiving from the GUI a list of files selectedby a user that are to be pinned or unpinned in the NVM drive, whereinthe list of files is selected by the user after displaying the hitstatistics and the miss statistics; mapping the list of files to a listof disk sectors that are to be pinned or unpinned in the NVM drive; andpinning or unpinning the sectors corresponding to the list of files inthe NVM drive.
 8. The machine readable medium of claim 7 wherein theinstructions when accessed result in the machine further performing: ifnot pinned or cached, calculate free space in the NVM drive, and if freespace is sufficient, cache the at least one sector to the NVM drive. 9.The machine readable medium of claim 8 wherein the instructions whenaccessed result in the machine further performing: if free space in theNVM drive is not sufficient, then running a cache eviction algorithm tofree cache space, and caching the at least one sector in the NVM drive.10. The machine readable medium of claim 9 wherein the instructions whenaccessed result in the machine further performing fulfilling the requestby accessing the at least one sector from the NVM drive.
 11. The machinereadable medium of claim 7 wherein fulfilling the request from the NVMdrive comprises accessing phase change memory (PCM).
 12. The machinereadable medium of claim 7 wherein fulfilling the request from the NVMdrive comprises accessing FLASH memory.
 13. The machine readable mediumof claim 7 wherein the instructions when accessed result in the machinefurther performing: if not pinned or cached, fulfilling the request frommedia other than the NVM drive.
 14. The machine readable medium of claim7 wherein determining if the at least one sector is pinned to the NVMdrive comprises accessing a list of pinned sectors.
 15. An electronicsystem comprising: a hard drive; a non-volatile memory (NVM) driveconfigured to emulate a disk drive; a pinning user interface configuredto allow a user to select data files to be pinned to the NVM drive, thepinning user interface further configured to display to the user hitstatistics and miss statistics, wherein the hit statistics correspond tothe pinned data files and the miss statistics correspond to data filesnot pinned, the pinning user interface further configured to allow theuser to select data files to be pinned after the display of the hitstatistics and the miss statistics, wherein the selected data files tobe pinned comprise a user-selected list, and wherein the pinning userinterface is further configured to map the user-selected list of filesto a list of sectors to be pinned or unpinned in the NVM drive; apinning service configured to map the pinned data files to sectors andconfigured to output a pinned sector list that is a list of sectors thatare to be pinned to the NVM drive; and a pinning driver componentconfigured to pin or unpin the sectors corresponding to theuser-selected list and the pinned sector list, the pinning drivercomponent further configured to receive read/write requests, and thepinning driver component further configured to access the NVM drivebased on contents of the pinned sector list and the user-selected list.16. The electronic system of claim 15 further comprising a pinningservice component to periodically update the pinned sector list.
 17. Theelectronic system of claim 15 wherein the NVM drive comprises phasechange memory (PCM).
 18. The electronic system of claim 15 wherein theNVM drive comprises FLASH memory.